package com.zlc.common.common.constant;

public enum ResourceTypeEnum {
    MENU,
    SUBMENU,
    GROUP,
    BUTTON;

    public static ResourceTypeEnum getByCode(String code) {
        for (ResourceTypeEnum value : ResourceTypeEnum.values()) {
            if (value.name().equals(code)) {
                return value;
            }
        }
        return null;
    }
}
